<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class UserAddress
 * 
 * @property int $id
 * @property int $uid
 * @property string|null $province
 * @property string|null $city
 * @property string|null $area
 * @property string|null $details
 * @property string|null $phone
 * @property string|null $name
 * @property bool|null $is_default
 * @property Carbon|null $create_at
 * @property Carbon|null $update_at
 * @property Carbon|null $delete_at
 *
 * @package App\Models
 */
class UserAddress extends BaseModels
{

    protected $table = 'zh_user_address';

    const IS_DEFAULT = 1; //默认地址

    const UN_DEFAULT = 0;

	protected $casts = [
		'uid' => 'int',
		'is_default' => 'bool'
	];

	protected $dates = [
		'create_at',
		'update_at',
		'delete_at'
	];

	protected $fillable = [
		'uid',
		'province',
		'city',
		'area',
		'details',
		'phone',
		'name',
		'is_default',
		'create_at',
		'update_at',
		'delete_at'
	];
}
